﻿using System.IO;
using System.Threading;
using NUnit.Framework;
using Occt.Test.Unit;

namespace TxCAD.Test.Unit
{
    [SetUpFixture, Apartment(ApartmentState.STA)]
    public class TestEnvironment
    {
        [OneTimeSetUp]
        public void SetUp()
        {
            OcctConfiguration.Configure();
            // Install Mesa3D
            //             var mesaDir = Path.GetFullPath(Path.Combine(TestContext.CurrentContext.TestDirectory, @"..\..\Packages\Mesa3D.20.1.8"));
            //             Assume.That(File.Exists(Path.Combine(mesaDir, "opengl32.dll")), "Mesa3D OpenGL driver not found, please call 'build restore' in script console.");
            //             Win32Api.SetDllDirectory(mesaDir);
            // 
            //             // Init context
            //             Context.InitEmpty();
        }


        [OneTimeTearDown]
        public void TearDown()
        {
            
        }
    }
}